class Animal():
    def __init__(self,name):
        self.name = name
    def run(self):
        print(f'animal {self.name} is runing')

class Dog(Animal):
    def __init__(self, name,age):
        super().__init__(name)
        self.age = age
    def run(self):
        # 调用父类方法
        super().run()
        print(f'dog is runing age is {self.age}')

d1 = Dog('旺财',2)
d1.run()